// Route State Load Spinner(used on page or content load)
(function () {
    'use strict';
    angular.module('app.core')
        .directive('a', function () {
            return {
                restrict: 'E',
                link: function (scope, elem, attrs) {
                    if (attrs.ngClick || attrs.href === '' || attrs.href === '#') {
                        elem.on('click', function (e) {
                            e.preventDefault(); // prevent link click for above criteria
                        });
                    }
                }
            };
        });
})();